package com.jumi.microservice.yzhpay.constant;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author Scw
 * @Date 2020-08-17 16:24
 */
public enum ErrorCodeTypeEnum implements AbstractEnum {
    /**
     * 提现类型
     */
    CODE_0000("0000", "成功"),
    CODE_1000("1000", "缺少请求参数"),
    CODE_1001("1001", "签名已过期"),
    CODE_1002("1002", "请求参数格式不正确"),
    CODE_1003("1003", "签名错误"),
    CODE_1004("1004", "加密错误"),
    CODE_1005("1005", "商户未设置3deskey或没有设置appkey"),
    CODE_1007("1007", "身份证号或收款户名不可为空"),
    CODE_1016("1016", "未设置 IP ⽩名单"),
    CODE_1017("1017", "请求 IP 不在⽩名单内"),
    CODE_2001("2001", "上传数据有误"),
    CODE_2002("2002", "已上传过该笔流⽔"),
    CODE_2003("2003", "实名认证失败");

    private String code;
    private String desc;

    ErrorCodeTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
